<template>
  <router-view v-if="isRouterAlive"></router-view>
</template>

<script setup>
import * as echarts from "echarts";
import { nextTick, provide, ref } from "vue";
provide("echarts", echarts);

const isRouterAlive = ref(true);

const reload = () => {
  isRouterAlive.value = false;
  nextTick(() => {
    isRouterAlive.value = true;
  });
};
provide("reload", reload);
</script>

<style lang="scss" >
@import url("./assets/css/main.css");
</style>
